home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Installer SDK 1.2.3 / Upgrader 1.2.3 & Engines / Upgrader 1.2.3 / Additional Data File Tools / ReadDataFileLib.h < prev    next >
Encoding:
Text File  |  1998-11-09  |  4.7 KB  |  94 lines  |  [TEXT/CWIE]

  1. // Format 2 Sub Task Flags
  2. const SInt16    kFormat2RequiredSubTask                = 0x8000;            // so could alert the user if try to skip
  3. const SInt16    kFormat2SelectInitially                = 0x4000;            // is it initially checked?
  4. const SInt16    kFormat2ForceInstallWithPriorScript    = 0x0400;            // Installer Task only - forces a script to install if the prior script installed
  5. const SInt16    kFormat2SkipIfSrcDoesNotExist        = 0x0200;            //  a script to install if the prior script installed
  6.  
  7.  
  8.  
  9.  
  10. // Format 3 Sub Task Flags
  11. const SInt16    kFormat3RequiredSubTask                = 0x8000;            // so could alert the user if try to skip
  12. const SInt16    kFormat3SelectInitially                = 0x4000;            // is it initially checked?
  13. const SInt16    kFormat3ForceInstallWithPriorScript    = 0x2000;            // forces a script to install if the prior script installed
  14. const SInt16    kFormat3SkipIfSrcDoesNotExist        = 0x1000;            // Skipped if source does not exist
  15. const SInt16    kFormat3EasyInstallModeAvailable    = 0x0800;            // Installer script supports easy install
  16. const SInt16    kFormat3CustomInstallModeAvailable    = 0x0400;            // Installer script supports custom install
  17. const SInt16    kFormat3CustomRemoveModeAvailable    = 0x0200;            // Installer script supports custom remove
  18. const SInt16    kFormat3ShowEasyInCustomInstallList    = 0x0100;            // Installer script supports custom remove
  19. const SInt16    kFormat3UseCompFeatureLookup        = 0x0080;            // Helps certain types of rule frameworks be more compatibile with custom selection.
  20. const SInt16    kFormat3RequireRestartForEasy        = 0x0040;            // Whether the Installer requires a restart when installing an easy feature set onto the boot volume.
  21.  
  22.  
  23.  
  24.  
  25. // Stream Sub Task Flags
  26. const SInt16    kStreamRequiredSubTask                = 0x8000;            // so could alert the user if try to skip
  27. const SInt16    kStreamSelectInitially                = 0x4000;            // is it initially checked?
  28. const SInt16    kStreamForceInstallWithPriorScript    = 0x2000;            // forces a script to install if the prior script installed
  29. const SInt16    kStreamSkipIfSrcDoesNotExist        = 0x1000;            // Skipped if source does not exist
  30. const SInt16    kStreamEasyInstallModeAvailable        = 0x0800;            // Installer script supports easy install
  31. const SInt16    kStreamCustomInstallModeAvailable    = 0x0400;            // Installer script supports custom install
  32. const SInt16    kStreamCustomRemoveModeAvailable    = 0x0200;            // Installer script supports custom remove
  33. const SInt16    kStreamShowEasyInCustomInstallList    = 0x0100;            // Installer script supports custom remove
  34. const SInt16    kStreamUseCompFeatureLookup            = 0x0080;            // Helps certain types of rule frameworks be more compatibile with custom selection.
  35. const SInt16    kStreamRequireRestartForEasy        = 0x0040;            // Whether the Installer requires a restart when installing an easy feature set onto the boot volume.
  36.  
  37.  
  38.  
  39. enum {
  40.     kCouldntGetIPPRHandle                            = 1502,
  41.     kCouldntGetInRSRCStream                            = 1503,
  42.     kCouldntGetOutRSRCStream                        = 1504,                            
  43.     kUnknownIPPRFormat                                = 1505,
  44.     kCouldntGetSoftwareNamesListRSRCHandle            = 1506,
  45.     kCouldntGetSoftwareNamesListRSRCStream            = 1507,
  46.     kCouldntGetInstallerAppflrfRSRCHandle            = 1508,
  47.     kCouldntGetInstallerAppflrfRSRCStream            = 1509,
  48.     kUnknownFLRFFormat                                = 1510,
  49.     kCouldntGetInstallerDocflrfRSRCHandle            = 1511,
  50.     kCouldntGetInstallerDocflrfRSRCStream            = 1512,
  51.     kCouldntGetInstallerAuxDocflrfRSRCHandle        = 1513,
  52.     kCouldntGetInstallerAuxDocflrfRSRCStream        = 1514,
  53.     kSizeStreamNull                                    = 1515,
  54.     kNotAllReturned                                    = 1516    
  55. };
  56.     
  57. enum {
  58.     kIPPRType                =     'ippr',
  59.     kFLRFType                =    'flrf'
  60. };
  61.     
  62. /****************************************************************************************************
  63.  You can use the ReadIPPR function to get a pointer to a stream of data retrieved from the ClientData file for 
  64.  which the FSSpec is passed in to the function.
  65.  
  66.  
  67.  OSErr ReadIPPR(FSSpec* inClientDataFileFSSpec, 
  68.                  Ptr outTheIPPRStream, 
  69.                  Size maximumSize, 
  70.                  Size* theSizeOfStream);
  71.                  
  72.  
  73.  inClientDataFileFSSpec        The FSSpec for the ClientData file.
  74.  
  75.  outTheIPPRStream            A pointer to the buffer in which the return stream is stored.  If this parameter is NIL, this function
  76.                              will just return the size of the output stream.
  77.  
  78.  maximumSize                The maximim lengrh, in bytes, of the data to be returned.  You must allocate at leas this amount
  79.                              of storage for the buffer specified by the outTheIPPRStream parameter.
  80.                              
  81.  theSizeOfStream            The length, in bytes, of the data for the IPPR in the specified ClientData file.  If this value is 
  82.                              larger than the value of the maximumSize parameter, not all of the dtat for the paramter was returned,
  83.                              and Result Code kNotAllReturned will be returned.
  84.                              
  85.                              
  86.  
  87. ****************************************************************************************************/
  88.  
  89.  
  90.     
  91.     
  92. OSErr ReadIPPR(FSSpec* inClientDataFileFSSpec, Ptr outTheIPPRStream, Size maximumSize, Size* theSizeOfStream);
  93.  
  94.